<?php
class MY_model extends CI_Model{
	private $log;
	function __construct(){
		parent::__construct();
		$this->log=Logger::getRootLogger();
	}
	public function query_result_to_array($query){
		$sets=array();
	    if(!empty($query)){
	    	foreach ($query->result_array() as $row){
	    		array_push($sets, $row);
	    	}
	    }
	    return $sets;
	}
	
}